/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ─── CSS Variables ────────────────────────────────── */
:root {
  --primary:       #1a56db;
  --primary-dark:  #1345b5;
  --primary-light: #e8f0fe;
  --accent:        #0ea5e9;
  --success:       #16a34a;
  --success-light: #dcfce7;
  --warning:       #d97706;
  --warning-light: #fef3c7;
  --danger:        #dc2626;
  --danger-light:  #fee2e2;
  --info:          #0891b2;
  --info-light:    #cffafe;

  --bg:            #f1f5f9;
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --border:        #e2e8f0;
  --border-2:      #cbd5e1;

  --text-1:        #0f172a;
  --text-2:        #475569;
  --text-3:        #94a3b8;

  --sidebar-w:     260px;
  --header-h:      64px;
  --radius:        10px;
  --radius-sm:     6px;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);

  --font:          'DM Sans', system-ui, sans-serif;
  --font-mono:     'DM Mono', monospace;
  --transition:    .18s ease;
}

/* ─── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text-1); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ─── Layout ───────────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

/* ─── Sidebar ──────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--text-1);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  min-height: var(--header-h);
}
.sidebar-brand .brand-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.sidebar-brand .brand-text { font-size: .9rem; font-weight: 700; line-height: 1.2; }
.sidebar-brand .brand-text span { display: block; font-size: .68rem; font-weight: 400; color: var(--text-3); }

.sidebar-section { padding: 12px 0 4px; }
.sidebar-section-label {
  font-size: .65rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
  padding: 0 20px 6px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: #94a3b8;
  font-size: .875rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.sidebar-nav a:hover  { color: #fff; background: rgba(255,255,255,.05); border-left-color: rgba(255,255,255,.2); }
.sidebar-nav a.active { color: #fff; background: rgba(26,86,219,.25); border-left-color: var(--primary); }
.sidebar-nav a .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-nav .nav-parent {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px 5px;
  color: #cbd5e1;
  font-size: .875rem;
  font-weight: 600;
}
.sidebar-nav a.nav-child { padding-left: 44px; font-size: .82rem; }
.sidebar-nav a.nav-child .nav-icon { width: 14px; font-size: 12px; }
.sidebar-nav a .nav-badge {
  margin-left: auto; background: var(--danger);
  color: #fff; font-size: .65rem; padding: 1px 6px;
  border-radius: 99px; font-weight: 600;
}

/* ─── Main Content ─────────────────────────────────── */
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ─── Header ───────────────────────────────────────── */
.topbar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.topbar-title { font-size: 1.05rem; font-weight: 600; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .85rem; cursor: pointer;
}
.topbar-user { font-size: .85rem; }
.topbar-user strong { display: block; font-weight: 600; line-height: 1.2; }
.topbar-user span   { color: var(--text-3); font-size: .75rem; }

/* ─── Page Content ─────────────────────────────────── */
.page-content { padding: 24px; flex: 1; }
.page-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-title   { font-size: 1.35rem; font-weight: 700; }
.page-subtitle{ color: var(--text-2); font-size: .875rem; margin-top: 2px; }
.breadcrumb   { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-3); margin-bottom: 6px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-2); }

/* ─── Cards ────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2);
}
.card-title  { font-size: .95rem; font-weight: 600; }
.card-body   { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ─── Stat Cards ────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card  {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 0;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.stat-card-value {
  font-size: clamp(1.05rem, 1.6vw + .6rem, 1.8rem);
  font-weight: 700; line-height: 1.15;
  overflow-wrap: anywhere; word-break: break-word;
}
.stat-card-label { font-size: .8rem; color: var(--text-2); font-weight: 500; }
.stat-card-sub   { font-size: .75rem; color: var(--text-3); }
/* Modifier: columns grow to fit their content (e.g. long currency values)
   instead of wrapping the value onto a second line. */
.stats-grid-fit { grid-template-columns: repeat(auto-fill, minmax(150px, max-content)); }
.stats-grid-fit .stat-card { min-width: 150px; }
.stats-grid-fit .stat-card-value { white-space: nowrap; }
@media (max-width: 480px) {
  .stats-grid-fit .stat-card-value { white-space: normal; overflow-wrap: anywhere; }
}
/* Status multi-select dropdown (welfare list filter) */
.status-multiselect { position: relative; max-width: 100%; }
.status-multiselect > .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  min-width: 150px;
  max-width: 100%;
}
.status-multiselect > .btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-multiselect-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 250;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px;
  width: max-content;
  min-width: min(280px, calc(100vw - 40px));
  max-width: min(360px, calc(100vw - 40px));
  max-height: min(320px, 60vh);
  overflow: auto;
}
.status-multiselect-panel.open { display: flex; }
.status-multiselect-panel .checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
  cursor: pointer;
}
.status-multiselect-panel .checkbox-option input {
  flex: 0 0 auto;
  margin-top: 2px;
}
.status-multiselect-panel .checkbox-option span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.icon-blue   { background: var(--primary-light); }
.icon-green  { background: var(--success-light); }
.icon-yellow { background: var(--warning-light); }
.icon-red    { background: var(--danger-light); }
.icon-cyan   { background: var(--info-light); }

/* ─── Tables ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  padding: 11px 16px; text-align: left;
  font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  background: var(--surface-2); color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
.table-empty { text-align: center; padding: 40px; color: var(--text-3); }

/* ─── Forms ────────────────────────────────────────── */
.form-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.form-group  { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
label        { font-size: .82rem; font-weight: 600; color: var(--text-2); }
label .req   { color: var(--danger); margin-left: 2px; }
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="tel"],
select, textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-1);
  font-size: .875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
/* Hide number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
textarea { min-height: 90px; resize: vertical; }
.form-hint { font-size: .75rem; color: var(--text-3); }
.form-error{ font-size: .75rem; color: var(--danger); }

/* ─── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary   { background: var(--primary);  color: #fff; border-color: var(--primary);  }
.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success   { background: var(--success);  color: #fff; }
.btn-success:hover  { opacity: .9; }
.btn-danger    { background: var(--danger);   color: #fff; }
.btn-danger:hover   { opacity: .9; }
.btn-warning   { background: var(--warning);  color: #fff; }
.btn-outline   { background: transparent; color: var(--text-1); border-color: var(--border-2); }
.btn-outline:hover  { background: var(--surface-2); }
.btn-sm        { padding: 5px 11px; font-size: .8rem; }
.btn-lg        { padding: 11px 22px; font-size: 1rem; }
.btn-icon      { padding: 7px; width: 34px; height: 34px; justify-content: center; }

/* ─── Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
}
.badge-pending  { background: var(--warning-light); color: var(--warning); }
.badge-verified { background: var(--info-light);    color: var(--info); }
.badge-approved { background: var(--success-light); color: var(--success); }
.badge-rejected { background: var(--danger-light);  color: var(--danger); }
.badge-primary  { background: var(--primary-light); color: var(--primary); }

/* ─── Alerts / Flash ────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-light); color: #15803d; border-color: #86efac; }
.alert-error   { background: var(--danger-light);  color: #b91c1c; border-color: #fca5a5; }
.alert-warning { background: var(--warning-light); color: #92400e; border-color: #fcd34d; }
.alert-info    { background: var(--info-light);    color: #0e7490; border-color: #67e8f9; }
.alert-close   { margin-left: auto; cursor: pointer; opacity: .6; background: none; border: none; font-size: 1rem; }

/* ─── Search / Filter bar ───────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}
.filter-bar input, .filter-bar select { max-width: 200px; }
.search-input-wrap { position: relative; }
.search-input-wrap input { padding-left: 34px; }
.search-input-wrap .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.welfare-list-card { overflow: visible; }
.welfare-list-card .table-wrap {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* ─── Pagination ────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; padding: 14px 20px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: var(--radius-sm); font-size: .82rem;
  border: 1px solid var(--border);
}
.pagination a { color: var(--text-1); }
.pagination a:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--text-3); pointer-events: none; }

/* ─── Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 520px;
  transform: translateY(20px); transition: transform var(--transition);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title   { font-weight: 700; }
.modal-close   { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-2); }
.modal-body    { padding: 20px; }
.modal-footer  { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ─── Score Meter ───────────────────────────────────── */
.score-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 99px; transition: width .4s ease; }
.score-high   .score-bar-fill { background: var(--success); }
.score-medium .score-bar-fill { background: var(--warning); }
.score-low    .score-bar-fill { background: var(--danger); }

/* ─── Match Result Card ─────────────────────────────── */
.match-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
  transition: border-color var(--transition);
}
.match-card.is-match  { border-color: var(--danger); background: var(--danger-light); }
.match-card.no-match  { border-color: var(--success); }
.match-score { font-size: 1.5rem; font-weight: 700; }

/* ─── Timeline (Audit) ──────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 14px;
  padding: 12px 0;
  border-left: 2px solid var(--border);
  margin-left: 10px; padding-left: 18px;
  position: relative;
}
.timeline-item::before {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--surface);
  position: absolute; left: -6px; top: 16px;
}
.timeline-meta { font-size: .75rem; color: var(--text-3); }
.timeline-field { font-family: var(--font-mono); font-size: .8rem; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.timeline-old   { color: var(--danger); text-decoration: line-through; }
.timeline-new   { color: var(--success); font-weight: 600; }

/* ─── Charts ────────────────────────────────────────── */
.chart-wrap { position: relative; }
canvas { display: block; }

/* ─── Login Page ────────────────────────────────────── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--text-1); padding: 20px; }
.login-card {
  background: var(--surface); border-radius: 16px;
  padding: 40px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .logo-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: #ffffff; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 30px; margin-bottom: 12px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.login-logo h1 { font-size: 1.3rem; font-weight: 800; }
.login-logo p  { color: var(--text-2); font-size: .85rem; }

/* ─── Utility ───────────────────────────────────────── */
.text-muted  { color: var(--text-3); }
.text-sm     { font-size: .82rem; }
.text-xs     { font-size: .73rem; }
.text-bold   { font-weight: 700; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-primary{ color: var(--primary); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning{ color: var(--warning); }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.mt-12       { margin-top: 12px; }
.mt-20       { margin-top: 20px; }
.mb-12       { margin-bottom: 12px; }
.mb-20       { margin-bottom: 20px; }
.code        { font-family: var(--font-mono); font-size: .85rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content { padding: 16px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar input, .filter-bar select { max-width: 100%; }
  .status-multiselect > .btn { width: 100%; }
  .status-multiselect-panel {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 6px;
  }
}

/* ─── Bulk Select & Action Bar ──────────────────────────────── */
.bulk-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #1a56db;
  color: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: .875rem;
  animation: slideDown .18s ease;
}
.bulk-bar.visible { display: flex; }
.bulk-bar .bulk-count { font-weight: 700; font-size: 1rem; }
.bulk-bar .bulk-label { flex: 1; }
.btn-bulk-delete {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: #dc2626; color: #fff; border: none;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.btn-bulk-delete:hover { background: #b91c1c; }
.btn-bulk-cancel {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.2); color: #fff; border: none;
  font-size: .82rem; font-weight: 600; cursor: pointer;
}
.btn-bulk-cancel:hover { background: rgba(255,255,255,.3); }

/* Checkbox column */
th.col-check, td.col-check {
  width: 38px; text-align: center; padding: 8px 6px;
}
tbody tr.row-selected { background: #eff6ff !important; }
input[type="checkbox"].row-cb { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }

/* ─── V3 Hold Badge ──────────────────────────────────────── */
.badge-hold { background: #fce7f3; color: #be185d; }

/* ─── V3 Previous Record Lookup ─────────────────────────── */
.prev-record-box {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: .82rem;
  overflow: hidden;
}
.prev-record-box .prb-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
  font-weight: 600; color: var(--primary);
}
.prev-record-box .prb-body { padding: 10px 12px; }
.prev-record-box .prb-row { display: flex; gap: 6px; margin-bottom: 4px; }
.prev-record-box .prb-label { color: var(--text-3); min-width: 110px; flex-shrink: 0; }
.prev-record-box .prb-val { font-weight: 600; color: var(--text-1); }
.btn-autofill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; border: none;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  margin-top: 8px; transition: background var(--transition);
}
.btn-autofill:hover { background: var(--primary-dark); }
.prev-checking { opacity: .6; }
