/* 교회 담당자 전용 어드민 */

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 14px; color: var(--dark); background: var(--light); line-height: 1.5; padding-bottom: 52px; }

[hidden] { display: none !important; }

.screen { min-height: calc(100vh - 52px); }
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #FFF8D9 0%, var(--light) 100%);
}
.login-box {
  width: 100%;
  max-width: 360px;
  padding: 32px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.login-title { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.login-desc { font-size: 0.9375rem; color: var(--dark); margin: 0 0 24px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }

.login-unique-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-unique-wrap[hidden] {
  display: none !important;
}
.login-unique-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text, #1a1a1a);
}
/* 로그인 필드: HTML 에 .input (ui-classes.css) */
.login-form .btn { padding: 12px; font-weight: 600; border: none; border-radius: var(--radius); cursor: pointer; font-family: var(--font); }
.login-form .btn-primary { background: var(--navy); color: var(--yellow); }

.admin-header {
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-header-inner {
  max-width: 100%;
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-title { font-size: 1.125rem; font-weight: 700; margin: 0; }
.lead-count { font-size: 0.9375rem; opacity: .9; }
.admin-actions .btn { padding: 8px 16px; font-size: 0.875rem; border-radius: 20px; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); cursor: pointer; font-family: var(--font); }
.admin-actions .btn:hover { background: rgba(255,255,255,.1); }

.admin-main { padding: 16px 16px 40px; max-width: 100%; width: 100%; margin: 0 auto; box-sizing: border-box; }
.admin-container { max-width: 100%; }

.admin-tabs { margin-bottom: 4px; }
.admin-tabs__bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(31, 42, 68, 0.12);
  margin-bottom: 4px;
}
.admin-tabs__tab {
  flex: 1;
  max-width: 12rem;
  padding: 12px 16px;
  margin: 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(31, 42, 68, 0.55);
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.admin-tabs__tab:hover {
  color: var(--navy);
  background: rgba(31, 42, 68, 0.04);
}
.admin-tabs__tab--active {
  color: var(--navy);
  font-weight: 700;
  border-bottom-color: var(--navy);
  background: rgba(255, 255, 255, 0.6);
}
.admin-tab-panel { padding-top: 12px; }
.account-section { padding: 8px 0 24px; }
.account-placeholder {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(31, 42, 68, 0.55);
  line-height: 1.5;
}

.leads-section .section-title { font-size: 1.0625rem; font-weight: 700; color: var(--navy); margin: 0 0 14px; letter-spacing: -0.02em; }
.leads-toolbar {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.toolbar-left--filters {
  align-items: stretch;
}
.toolbar-select,
.leads-toolbar select {
  height: 40px;
  padding: 0 12px;
  font-family: var(--font);
  font-size: 0.875rem;
  border: 1px solid rgba(31, 42, 68, 0.18);
  border-radius: 10px;
  background: var(--white);
  min-width: 0;
}
.toolbar-left .toolbar-select:first-of-type {
  flex: 0 1 auto;
  min-width: 7.5rem;
}
#search-column.toolbar-select {
  flex: 0 1 auto;
  min-width: 10rem;
  max-width: 100%;
}
.toolbar-search-input {
  flex: 1 1 140px;
  height: 40px;
  min-width: 0;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(31, 42, 68, 0.18);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9375rem;
  background: var(--white);
}
.btn-mini {
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(31, 42, 68, 0.2);
  background: var(--white);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
}
.btn-search { background: #2f6fa9; color: #fff; border-color: #2f6fa9; }
.btn-add { background: #2f6fa9; color: #fff; border-color: #2f6fa9; }

.leads-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 0 4px;
}
.leads-pagination__info {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(31, 42, 68, 0.75);
  min-width: 6.5rem;
  text-align: center;
}
.leads-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 가입 신청 — 메인 CTA (눈에 띄게) */
.btn-signup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 4px;
  min-height: 42px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  border: 2px solid #d4a800;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, #fff3a8 0%, var(--yellow) 45%, #ffc107 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 4px 0 #b8860b,
    0 8px 24px rgba(31, 42, 68, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  animation: signup-cta-glow 2.8s ease-in-out infinite;
}
.btn-signup-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 6px 0 #a67c00,
    0 14px 28px rgba(31, 42, 68, 0.28);
  animation: none;
}
.btn-signup-cta:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 0 #b8860b,
    0 4px 12px rgba(31, 42, 68, 0.2);
  animation: none;
}
.btn-signup-cta:focus {
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 4px 0 #b8860b,
    0 8px 24px rgba(31, 42, 68, 0.22),
    0 0 0 3px rgba(31, 42, 68, 0.25);
}
.btn-signup-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--yellow);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
}
.btn-signup-cta__icon::before {
  content: '+';
  margin-top: -2px;
}
.btn-signup-cta__text {
  line-height: 1.2;
}
@keyframes signup-cta-glow {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.65) inset,
      0 4px 0 #b8860b,
      0 8px 24px rgba(31, 42, 68, 0.22);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.65) inset,
      0 4px 0 #b8860b,
      0 8px 28px rgba(31, 42, 68, 0.28),
      0 0 0 4px rgba(255, 213, 74, 0.35);
  }
}

/* 목록: 모바일 퍼스트 — 카드 2열(상품명|등록일 / 증권번호|접수이력). 나머지 열은 DOM만 유지 */
.leads-table-wrap {
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  width: 100%;
}
.leads-table {
  display: block;
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.leads-table thead {
  display: none;
}
.leads-table tbody {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.leads-table tbody tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
  cursor: pointer;
  background: var(--white);
  border: 1px solid rgba(31, 42, 68, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(31, 42, 68, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.leads-table tbody tr:hover {
  border-color: rgba(31, 42, 68, 0.18);
  box-shadow: 0 4px 16px rgba(31, 42, 68, 0.08);
}
.leads-table tbody tr:active {
  transform: scale(0.998);
}
.leads-table th,
.leads-table td {
  border: none;
  padding: 0;
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.leads-table tbody td {
  display: none;
}
/* DOM 순서 4→6→7→13 이 그리드 자동 배치로 1행·2행이 됨 */
.leads-table tbody td:nth-child(4),
.leads-table tbody td:nth-child(6),
.leads-table tbody td:nth-child(7),
.leads-table tbody td:nth-child(13) {
  display: block;
  padding: 0;
  min-width: 0;
}
.leads-table tbody td:nth-child(4) {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.leads-table tbody td:nth-child(6) {
  font-size: 0.8125rem;
  color: var(--dark);
  line-height: 1.4;
}
.leads-table tbody td:nth-child(6)::before {
  content: '접수: ';
  font-weight: 600;
  color: #64748b;
  font-size: 0.8125rem;
}
.leads-table tbody td:nth-child(7)::before {
  content: '증권(설계)번호: ';
  font-weight: 600;
  color: #64748b;
  font-size: 0.8125rem;
}
.leads-table tbody td:nth-child(4).cell-td-readonly,
.leads-table tbody td:nth-child(7).cell-td-readonly {
  background: transparent;
}
.leads-table tbody td:nth-child(4) .cell-readonly,
.leads-table tbody td:nth-child(6) .cell-readonly,
.leads-table tbody td:nth-child(7) .cell-readonly {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--dark);
}
.leads-table tbody td:nth-child(13) .cell-status {
  font-size: 0.625rem;
  margin-top: 3px;
}
.insurance-type-tag {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #1a5f8a;
  line-height: 1.3;
}
.row-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #3ba3c9;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}
.cell-input,
.cell-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 4px;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font);
  box-sizing: border-box;
}
.cell-input.memo { min-width: 0; }
.cell-td-readonly {
  background: #fafafa;
  color: #444;
}
.cell-readonly {
  display: inline-block;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.35;
}
.detail-readonly {
  background: #eceff1 !important;
  color: #333 !important;
  cursor: default;
}
.cell-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.cell-status.status-new { background: #FFF8D9; color: var(--navy); }
.cell-status.status-subscription { background: #E3F2FD; color: #1565C0; }
.cell-status.status-policy { background: #E8F5E9; color: #2E7D32; }
.cell-history-wrap { min-width: 0; }
.leads-empty { color: var(--dark); opacity: .7; text-align: center; padding: 48px 24px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); cursor: pointer; }
.modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.modal-content--signup {
  max-width: 560px;
}
.signup-step { width: 100%; }
.signup-lead {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--dark);
}
.signup-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.signup-type-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  line-height: 1.35;
  border: 2px solid rgba(31, 42, 68, 0.2);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.signup-type-card:hover {
  border-color: var(--navy);
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(31, 42, 68, 0.08);
}
.signup-type-card:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.45);
}
.btn-back-signup {
  margin: 0 0 12px;
  padding: 6px 0;
  font-family: var(--font);
  font-size: 0.8125rem;
  color: #2f6fa9;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.btn-back-signup:hover { color: var(--navy); }
.signup-selected-label {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  color: var(--dark);
}
.signup-selected-label strong { color: var(--navy); }
.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.signup-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8125rem;
}
.signup-form .full { grid-column: 1 / -1; }
.signup-form-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.signup-form-block[hidden] {
  display: none !important;
}
.signup-form-hint {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #37474f;
  background: #fff8e1;
  border-radius: 8px;
  border: 1px solid rgba(255, 193, 7, 0.35);
}
.signup-memo-wrap span { font-weight: 600; color: var(--color-text-primary); margin-bottom: 6px; display: block; }
.signup-form input,
.signup-form select,
.signup-form textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  border: var(--field-border-muted);
  border-radius: var(--field-radius-sm);
  padding: var(--field-pad-y-sm) var(--field-pad-x-sm);
  background: var(--field-bg);
}
.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: var(--field-focus-ring);
}
.signup-form textarea { resize: vertical; min-height: 72px; }
.signup-form-actions {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.btn-primary-signup {
  width: 100%;
  padding: 12px 18px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--yellow);
  cursor: pointer;
}
.btn-primary-signup:hover { opacity: .92; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.modal-header h2 { font-size: 1.125rem; font-weight: 700; color: var(--navy); margin: 0; }
.modal-close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); line-height: 1; padding: 4px; }
.modal-body { padding: 20px; font-size: 0.9375rem; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detail-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}
.detail-grid .full { grid-column: 1 / -1; }
.detail-grid input,
.detail-grid select,
.detail-grid textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  border: var(--field-border-muted);
  border-radius: var(--field-radius-sm);
  padding: var(--field-pad-y-sm) var(--field-pad-x-sm);
  background: var(--field-bg);
}
.detail-grid input:focus,
.detail-grid select:focus,
.detail-grid textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: var(--field-focus-ring);
}
.detail-grid input[readonly] {
  background: #f3f3f3;
}
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 20px 20px; border-top: 1px solid var(--light); }
.modal-footer .btn { padding: 10px 18px; font-family: var(--font); font-size: 0.9375rem; border-radius: var(--radius); cursor: pointer; border: 1px solid rgba(0,0,0,.2); background: var(--white); color: var(--dark); }
.modal-footer .btn-danger { background: var(--color-accent); color: var(--white); border-color: var(--color-accent); }
.modal-footer .btn:hover { opacity: .9; }

/* 하단 고정 푸터 (고객센터) */
.admin-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
.admin-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  max-width: 900px;
  margin: 0 auto;
}
.admin-footer-label { font-weight: 600; color: var(--yellow); margin-right: 2px; }
.admin-footer-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}
.admin-footer-link:hover { color: var(--yellow); text-decoration: underline; }
.admin-footer-sep { opacity: 0.5; user-select: none; }

/* 카카오톡 플로팅 (푸터 위) */
.float-kakao {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(52px + max(12px, env(safe-area-inset-bottom)));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  text-decoration: none;
  color: var(--kakao-black);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.float-kakao:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.22));
}
.float-kakao:focus { outline: none; }
.float-kakao:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
  border-radius: 12px;
}
.float-kakao__bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--kakao-yellow);
  color: var(--kakao-black);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08) inset;
}
.float-kakao__text {
  max-width: 76px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

  .leads-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left, .toolbar-right { flex-wrap: wrap; }
  .detail-grid { grid-template-columns: 1fr; }
  .signup-form { grid-template-columns: 1fr; }
  .signup-form-block { grid-template-columns: 1fr; }
  .signup-type-grid { grid-template-columns: 1fr; }

/* 관리자 전용(admin-master.html) */
.admin-master-body {
  padding-bottom: 0;
}
.admin-master-body #master-panel.screen {
  min-height: 100vh;
}
.admin-master-body .master-login-box {
  max-width: 420px;
}
.master-hint {
  margin-top: 20px;
  font-size: 0.875rem;
  text-align: center;
}
.master-hint a {
  color: #2f6fa9;
}
.master-main {
  max-width: 640px;
}
.master-container {
  padding-bottom: 48px;
}
.master-lead {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dark);
}
.master-label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 0.9375rem;
}
.master-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  resize: vertical;
  min-height: 200px;
  box-sizing: border-box;
}
.master-textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.35);
}
.master-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.btn-master-save {
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--yellow);
  cursor: pointer;
}
.btn-master-save:hover {
  opacity: 0.92;
}
.btn-master-reset {
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 0.9375rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
}
.btn-master-reset:hover {
  background: #f5f5f5;
}
.master-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 0.875rem;
  font-weight: 600;
}
.master-footer-links {
  margin-top: 28px;
  font-size: 0.9375rem;
}
.master-footer-links a {
  color: #2f6fa9;
  font-weight: 600;
}

.master-section {
  margin-bottom: 40px;
}
.master-h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(31, 42, 68, 0.12);
}
.master-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}
.master-table-wrap {
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: var(--white);
}
.master-leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 880px;
}
.master-leads-table th,
.master-leads-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}
.master-leads-table th {
  background: #f2f2f2;
  color: var(--navy);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
.master-row-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 6px;
  font-size: 11px;
  font-family: var(--font);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-sizing: border-box;
}
.btn-master-row-save {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #2f6fa9;
  border-radius: 4px;
  background: #2f6fa9;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-master-row-save:hover {
  opacity: 0.92;
}
.master-td-id {
  font-size: 10px;
  color: #666;
  max-width: 100px;
  word-break: break-all;
}
.master-td-name {
  max-width: 110px;
}
.master-empty {
  text-align: center;
  padding: 32px;
  color: #666;
}
