/* ============================================================
   RJBCL — Renewal Paid Receipts — style.css
   Aesthetic: Refined financial / institutional — clean, airy,
   authoritative. Neutral base with a confident teal-green accent.
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@400,0&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --clr-primary:          #00745a;
  --clr-primary-dark:     #005a45;
  --clr-primary-light:    #e6f5f1;
  --clr-accent:           #00b38a;

  /* Surface */
  --clr-bg:               #f4f6f9;
  --clr-surface:          #ffffff;
  --clr-surface-raised:   #ffffff;
  --clr-border:           #e2e8f0;
  --clr-border-light:     #edf2f7;

  /* Text */
  --clr-text-primary:     #0f1f2e;
  --clr-text-secondary:   #4a5568;
  --clr-text-muted:       #8a99aa;
  --clr-text-inverse:     #ffffff;

  /* State */
  --clr-hover:            #f0faf7;
  --clr-info-bg:          #eff8ff;
  --clr-info-border:      #bde0fd;
  --clr-info-text:        #1a6fa0;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;

  /* Shadow */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg:   0 8px 24px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.04);

  /* Typography */
  --font-sans:   'DM Sans', sans-serif;
  --font-serif:  'DM Serif Display', serif;

  /* Font Sizes — slightly smaller than original */
  --fs-xs:    11px;
  --fs-sm:    12.5px;
  --fs-base:  14px;
  --fs-md:    15px;
  --fs-lg:    17px;
  --fs-xl:    20px;
  --fs-2xl:   26px;
  --fs-3xl:   34px;

  /* Spacing */
  --sp-xs:   4px;
  --sp-sm:   8px;
  --sp-md:   16px;
  --sp-lg:   24px;
  --sp-xl:   40px;
  --sp-2xl:  64px;

  /* Layout */
  --container-max: 1340px;
  --nav-h: 62px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--clr-text-primary);
  background: var(--clr-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Utility ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  font-size: inherit;
  vertical-align: middle;
  line-height: 1;
}

/* ---------- Top Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-h);
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}
@media (max-width: 768px) {
  .nav__inner { justify-content: space-around; }
}
@media (max-width: 1409px) {
  .nav__inner { padding: 0 var(--sp-xl);}
}
.nav__logo {
  width: 210px;
  display: block;
}

/* ---------- Main Layout ---------- */
.main {
  flex: 1;
  padding-top: calc(var(--nav-h) + var(--sp-xl));
  padding-bottom: var(--sp-2xl);
  padding-inline: var(--sp-xl);
}

.main__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ---------- Page Header ---------- */
/* ---------- Page Header ---------- */
.page-header {
  margin-bottom: var(--sp-xl);
}

.page-title {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 600;              /* 🔥 stronger hierarchy */
  color: var(--clr-text-primary);
  letter-spacing: -0.4px;
  line-height: 1.25;
  
}

/* Nepali secondary title */
.page-title .np-title {
  display: inline-block;
  margin-left: 6px;
  font-weight: 400;
  font-size: 0.9em;
  color: var(--clr-text-muted);
}

/* Subtitle */
.page-subtitle {
  margin-top: var(--sp-sm);
  font-size: var(--fs-sm);
  color: #4b5563;               /* 🔥 slightly stronger than muted */
  letter-spacing: 0.01em;
  max-width: 620px;             /* 🔥 improves readability */
}

/* ---------- Content Grid ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--sp-lg);
  align-items: start;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}


/* ---------- Card Base ---------- */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* ---------- Form Panel ---------- */
.form-panel {
  padding: var(--sp-lg);
}

.form-panel__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-text-primary);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--clr-primary-light);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.field {}

.field__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-xs);
}

.field__input {
  width: 100%;
  padding: 9px var(--sp-md);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--clr-text-primary);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none;
}

.field__input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(0,116,90,.12);
  background: var(--clr-surface);
}

.field__input::placeholder { color: var(--clr-text-muted); }

/* Captcha box */
.captcha-box {
  background: var(--clr-bg);
  border: 1px dashed var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
}

.captcha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
}

.captcha-code {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 6px var(--sp-md);
  font-family: 'Courier New', monospace;
  font-size: var(--fs-xl);
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--clr-primary);
  user-select: none;
  opacity: .75;
}

.captcha-refresh {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  padding: var(--sp-xs);
  border-radius: var(--radius-sm);
  transition: background .15s;
  font-size: 20px;
}

.captcha-refresh:hover { background: var(--clr-primary-light); }

/* DOB dual fields */
.dob-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.dob-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.field__sublabel {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
}

.dob-divider {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-text-muted);
  padding-top: 18px; /* aligns with inputs, accounting for sublabel height */
  flex-shrink: 0;
}

/* Tab Toggle */
.tab-toggle {
  display: flex;
  padding: 3px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  gap: 3px;
}

.tab-toggle__btn {
  flex: 1;
  padding: 7px var(--sp-sm);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  background: none;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}

.tab-toggle__btn:hover:not(.tab-toggle__btn--active) {
  background: var(--clr-border-light);
  color: var(--clr-text-secondary);
}

.tab-toggle__btn--active {
  background: var(--clr-surface);
  color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

/* Submit button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  width: 100%;
  padding: 11px var(--sp-lg);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--clr-text-inverse);
  background: var(--clr-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .18s;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0,116,90,.25);
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,116,90,.3);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary .material-symbols-outlined { font-size: 17px; }

/* Info card */
.info-card {
  margin-top: var(--sp-md);
  background: var(--clr-info-bg);
  border: 1px solid var(--clr-info-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  display: flex;
  gap: var(--sp-sm);
}

.info-card .material-symbols-outlined {
  font-size: 18px;
  color: var(--clr-info-text);
  flex-shrink: 0;
  margin-top: 1px;
}

.info-card__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-info-text);
  margin-bottom: 3px;
}

.info-card__body {
  font-size: var(--fs-sm);
  color: var(--clr-info-text);
  line-height: 1.55;
  opacity: .85;
}

/* ---------- Results Panel ---------- */
.results-panel {
  overflow: hidden;
}

.results-header {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--clr-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--clr-surface);
}

.results-header__title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--clr-text-primary);
}

.btn-export {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-primary);
  background: none;
  border: 1px solid var(--clr-primary);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn-export:hover {
  background: var(--clr-primary);
  color: var(--clr-text-inverse);
}

.btn-export:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.btn-export:disabled:hover {
  background: none;
  color: var(--clr-primary);
}

.btn-export .material-symbols-outlined { font-size: 15px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

thead tr {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
}

thead th {
  padding: 10px var(--sp-lg);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  text-align: center!important;
  white-space: nowrap;
  text-align: left;
}

thead th:last-child { text-align: right; }

tbody tr {
  border-bottom: 1px solid var(--clr-border-light);
  transition: background .14s;
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: var(--clr-hover); }

tbody tr:nth-child(even) { background: #fafcff; }

tbody tr:nth-child(even):hover { background: var(--clr-hover); }

tbody td {
  padding: 13px var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--clr-text-secondary);
  white-space: nowrap;
}

.td-policy {
  font-weight: 600;
  color: var(--clr-text-primary);
  font-size: var(--fs-base);
}

td:last-child { text-align: right; }

/* Policy badge */
.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  padding: 3px 8px;
  border-radius: 99px;
}

/* Print button */
.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-primary);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color .14s, background .14s;
  text-decoration: none;
}

.btn-print:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
}

.btn-print .material-symbols-outlined { font-size: 15px; }

.btn-download {
  margin-left: 6px;
}

/* ---------- Table Footer / Pagination ---------- */
.table-footer {
  padding: 10px var(--sp-lg);
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-footer__count {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.pagination {
  display: flex;
  gap: var(--sp-xs);
}

.btn-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  color: var(--clr-text-secondary);
  transition: background .14s;
  font-size: 18px;
}

.btn-page:hover:not(:disabled) { background: var(--clr-bg); }
.btn-page:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Footer ---------- */
.footer {
  padding: var(--sp-lg) var(--sp-xl);
  border-top: 1px solid var(--clr-border);
  background: #f8fafc;
}

.footer__inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* ---------- Custom AD Datepicker ─────────────────────────── */
.dp {
  display: none;
  position: absolute;
  z-index: 200;
  width: 240px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-sm);
  margin-top: 4px;
  font-family: var(--font-sans);
  animation: dp-appear .15s ease;
}

.dp--open { display: block; }

/* ensure the .dob-col is the positioning parent */
.dob-col { position: relative; }

@keyframes dp-appear {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dp__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--clr-border-light);
}

.dp__heading {
  display: flex;
  gap: 4px;
  align-items: center;
}

.dp__month-label,
.dp__year-label {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-text-primary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: background .14s, color .14s;
}

.dp__month-label:hover,
.dp__year-label:hover {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}

.dp__nav {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--clr-text-secondary);
  cursor: pointer;
  transition: background .14s, border-color .14s;
}

.dp__nav:hover {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.dp__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.dp__weekdays span {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  padding: 2px 0;
}

.dp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dp__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--clr-text-primary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.dp__day:hover:not(:disabled):not(.dp__day--selected) {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}

.dp__day--today {
  font-weight: 700;
  color: var(--clr-primary);
}

.dp__day--today::after {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--clr-primary);
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

.dp__day--today { position: relative; }

.dp__day--selected {
  background: var(--clr-primary);
  color: #fff;
  font-weight: 700;
}

.dp__day--empty { pointer-events: none; }

.dp__footer {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-sm);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--clr-border-light);
}

.dp__action {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: background .14s;
}

.dp__action--clear {
  color: var(--clr-text-muted);
}

.dp__action--clear:hover { background: var(--clr-border-light); }

.dp__action--today {
  color: var(--clr-primary);
}

.dp__action--today:hover { background: var(--clr-primary-light); }


/* ---------- Empty State ──────────────────────────────────── */
.empty-state-cell {
  padding: 0 !important;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px var(--sp-xl);
  text-align: center;
}

.empty-state__icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

.empty-state__icon {
  font-size: 36px !important;
  color: var(--clr-primary);
  position: relative;
  z-index: 1;
}

.empty-state__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--clr-primary);
  opacity: 0;
  animation: ring-pulse 2.4s ease-out infinite;
}

.empty-state__ring--1 {
  width: 52px; height: 52px;
  animation-delay: 0s;
}

.empty-state__ring--2 {
  width: 72px; height: 72px;
  animation-delay: 0.6s;
}

@keyframes ring-pulse {
  0%   { opacity: .5; transform: scale(.8); }
  100% { opacity: 0;  transform: scale(1.1); }
}

.empty-state__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-text-primary);
  margin-bottom: var(--sp-sm);
}

.empty-state__body {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.65;
  max-width: 360px;
  margin-bottom: var(--sp-lg);
}

.empty-state__steps {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.empty-state__step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-text-secondary);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 99px;
  padding: 5px 12px;
}

.empty-state__step-num {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.empty-state__step-arrow {
  color: var(--clr-text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
}

.empty-state__step-arrow .material-symbols-outlined {
  font-size: 16px !important;
}

/* ---------- Year Picker Grid ─────────────────────────────── */
.dp__year-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 2px 0;
}

.dp__year-cell {
  padding: 8px 4px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-text-primary);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: background .12s, color .12s, border-color .12s;
}

.dp__year-cell:hover:not(.dp__year-cell--selected) {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}

.dp__year-cell--current {
  font-weight: 700;
  color: var(--clr-primary);
}

.dp__year-cell--selected {
  background: var(--clr-primary);
  color: #fff;
  font-weight: 700;
  border-color: var(--clr-primary);
}


/* .g-recaptcha{
  overflow: hidden;
} */
/* ---------- Google reCAPTCHA v2 Container ──────────────── */
 
.field .g-recaptcha {
  display: inline-block;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 6px;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
  overflow: hidden;
}
 
.field:focus-within .g-recaptcha {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(0,116,90,.10);
  background: var(--clr-surface);
}
 
.field .g-recaptcha iframe {
  display: block;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
}
 
/* Scale the inner widget down to fit the container width */
.field .g-recaptcha > div {
  transform-origin: top left;
  transform: scale(0.91)!important; 
  height: 72px!important; /* default height of reCAPTCHA widget */
}
 
.field.recaptcha-verified .g-recaptcha {
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
  box-shadow: 0 0 0 3px rgba(0,116,90,.12);
}
 
.field.recaptcha-verified .field__label {
  color: var(--clr-primary);
}

@media (max-width: 768px) {

  thead {
    display: none;
  }

  table, tbody {
    display: block;
  }

  tbody tr {
    display: block;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-md);
    padding: var(--sp-md);
    box-shadow: var(--shadow-sm);
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: var(--fs-sm);
    border: none;
  }

  tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--clr-text-muted);
  }

  /* Action row (buttons) */
  tbody td:first-child {
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 8px;
  }

}

@media (max-width: 768px) {

  .action-cell {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
  }

  .action-cell::before {
    content: "";   /* remove "Action" label */
  }

  .action-cell .btn-print {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 92px;
    justify-content: center;
  }

  .action-cell .btn-download {
    display: inline-flex !important;
  }

}
/* ---------- Empty State ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px var(--sp-xl);
}

/* Icon */
.empty-state__icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-state__icon {
  width: 28px;
  height: 28px;
  color: var(--clr-primary);
}

/* Title */
.empty-state__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-text-primary);
  margin-bottom: 8px;
}

/* Description */
.empty-state__body {
  max-width: 420px;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Steps container */
.empty-state__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Step */
.empty-state__step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--clr-text-secondary);
  transition: background 0.2s ease;
}

.empty-state__step:hover {
  background: #f1f5f9;
}

/* Step number */
.empty-state__step-number {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* Arrow */
.empty-state__step-arrow {
  color: var(--clr-text-muted);
  font-size: 14px;
}

/* ---------- Footer (inside card) ---------- */

.recent-transactions-footer {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--clr-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--clr-border);
}

/* ---------- MOBILE FIX ---------- */

@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --sp-xl: 20px;
    --sp-2xl: 32px;
  }

  .nav__inner {
    justify-content: center;
    padding: 0 var(--sp-md);
  }

  .nav__logo {
    width: 170px;
  }

  .main {
    padding: calc(var(--nav-h) + 18px) var(--sp-md) var(--sp-xl);
  }

  .page-header {
    margin-bottom: var(--sp-lg);
    text-align: center;
  }

  .page-title {
    font-size: 26px;
    letter-spacing: 0;
  }

  .page-title .np-title {
    display: block;
    margin: 4px 0 0;
    font-size: 16px;
  }

  .page-subtitle {
    max-width: none;
    margin-inline: auto;
    line-height: 1.55;
  }

  .content-grid {
    gap: var(--sp-md);
  }

  .card,
  .info-card {
    border-radius: var(--radius-lg);
  }

  .form-panel {
    padding: var(--sp-md);
  }

  .form-panel__title {
    margin-bottom: var(--sp-md);
  }

  .tab-toggle__btn {
    white-space: normal;
    line-height: 1.25;
  }

  .dob-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dob-divider {
    padding-top: 0;
    text-align: center;
  }

  .field .g-recaptcha {
    padding: 4px;
  }

  .field .g-recaptcha > div {
    transform: scale(0.89)!important;
    height: 69px!important;
  }

  .info-card {
    padding: var(--sp-sm);
  }

  .results-panel {
    overflow: visible;
  }

  .results-header {
    padding: var(--sp-md);
  }

  .table-wrap {
    overflow: visible;
  }

  .table-footer {
    padding: var(--sp-sm) var(--sp-md);
    gap: var(--sp-sm);
  }

  .empty-state-cell::before {
    display: none;
  }

  .empty-state-cell,
  .empty-state__body {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .empty-state {
    padding: 32px var(--sp-md);
  }

  .empty-state__body {
    max-width: 280px;
    width: 100%;
  }

  .empty-state__steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .empty-state__step {
    width: 100%;
    max-width: 260px;
    justify-content: center;
    text-align: center;
  }

  .empty-state__step-arrow {
    display: none; /* remove arrows on mobile */
  }

  .ndp-container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(92vw, 340px) !important;
    max-width: none !important;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    z-index: 2000;
  }

  .ndp-month-selection,
  .ndp-year-selection {
    min-height: 0;
  }

  .ndp-month-button,
  .ndp-year-button {
    width: calc(33.333% - 10px);
  }

}

@media (max-width: 380px) {
  .dob-row {
    flex-direction: column;
  }

  .dob-divider {
    padding-top: 0;
    text-align: center;
  }

  .field .g-recaptcha > div {
    transform: scale(0.84)!important;
    height: 64px!important;
  }

  .ndp-container {
    width: calc(100vw - 16px) !important;
  }
}
