/* AIVision HRMS Manager Portal */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #BD1313;
  --brand-hover: #991010;
  --brand-deep: #7A0D0D;
  --brand-light: #FDF2F2;
  --brand-border: #F5BFBF;
  --green: #16A34A;
  --green-light: #DCFCE7;
  --green-border: #86EFAC;
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --amber-border: #FCD34D;
  --red: #DC2626;
  --red-light: #FEF2F2;
  --red-border: #FECACA;
  --blue: #2563EB;
  --blue-light: #EFF6FF;
  --blue-border: #BFDBFE;
  --purple: #7C3AED;
  --purple-light: #FAF5FF;
  --purple-border: #DDD6FE;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-hint: #94A3B8;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --page-bg: #FAFAFA;
}

html, body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  background: #0F172A;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* PAGE SHELL */
.shell {
  position: relative;
  min-height: 100vh;
  background: #FAFAFA;
  overflow: hidden;
}
.shell-deco-1 {
  position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(189,19,19,0.04);
  pointer-events: none;
}
.shell-deco-2 {
  position: absolute; bottom: -80px; left: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(15,23,42,0.025);
  pointer-events: none;
}
.shell-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(15,23,42,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.shell-content { position: relative; z-index: 1; }

/* TOP NAV */
.topnav {
  height: 64px;
  background: white;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}
.topnav-left { display: flex; align-items: center; gap: 16px; }
.topnav-logo { height: 30px; }
.topnav-divider { width: 1px; height: 20px; background: var(--border); }
.topnav-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.topnav-crumb .b1 { color: var(--text-primary); font-weight: 600; }
.topnav-crumb .b2 { color: var(--text-muted); font-weight: 500; }
.topnav-crumb .sep { color: var(--text-hint); }

.topnav-back {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
  padding: 6px 10px; border-radius: 8px;
  transition: all 150ms;
  margin-right: 4px;
}
.topnav-back:hover { color: var(--brand); background: var(--brand-light); }

.topnav-right { display: flex; align-items: center; gap: 12px; }
.topnav-user { text-align: right; line-height: 1.25; }
.topnav-user .n { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.topnav-user .r { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.topnav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
  box-shadow: 0 2px 8px rgba(189,19,19,0.4);
}

/* MAIN */
.main { padding: 32px 40px; }

.page-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 24px;
  animation: fadeUp 300ms ease-out both;
}
.page-title { font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* DARK BUTTONS */
.btn-export {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  border-radius: 10px;
  transition: all 200ms;
}
.btn-export:hover {
  background: var(--brand-light);
  border-color: var(--brand-border);
  color: var(--brand);
}
.btn-export svg { width: 14px; height: 14px; }

/* STATS ROW */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
  animation: fadeUp 300ms ease-out 60ms both;
}
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  transition: all 200ms;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  transform: translateY(-2px);
}
.stat-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.stat-value { font-size: 28px; font-weight: 700; line-height: 1; color: var(--text-primary); }
.stat-sub {
  font-size: 12px; color: var(--text-muted);
  margin-top: 8px;
  display: flex; align-items: center; gap: 6px;
}
.stat-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* WHITE CARD */
.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: scaleIn 350ms ease-out both;
}

/* FILTER BAR */
.filter-bar {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.filter-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-right { font-size: 13px; color: var(--text-muted); }

.search-input-wrap { position: relative; }
.search-input-wrap svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-hint);
  pointer-events: none;
}
.search-input {
  height: 40px; width: 240px;
  padding: 0 16px 0 38px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px; font-weight: 400;
  color: var(--text-primary);
  transition: all 150ms;
}
.search-input::placeholder { color: var(--text-hint); }
.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(189,19,19,0.10);
}

.select {
  height: 40px;
  padding: 0 36px 0 14px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 150ms;
  cursor: pointer;
}
.select:focus, .select:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(189,19,19,0.10);
}

/* TABLE */
.table { width: 100%; border-collapse: collapse; }
.table thead { background: var(--page-bg); border-bottom: 2px solid var(--border); }
.table th {
  font-size: 11px; font-weight: 600;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 20px;
  text-align: left;
}
.table th.center { text-align: center; }
.table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 13px;
}
.table td.center { text-align: center; }
.table tbody tr {
  transition: background 150ms;
  cursor: pointer;
}
.table tbody tr:hover { background: #FFFBFB; }
.table tbody tr:last-child td { border-bottom: none; }

.person-cell { display: flex; align-items: center; gap: 12px; }
.avatar {
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700;
  flex-shrink: 0;
}
.avatar-38 { width: 38px; height: 38px; font-size: 13px; }
.avatar-56 { width: 56px; height: 56px; font-size: 18px; }
.avatar-34 { width: 34px; height: 34px; font-size: 12px; }
.avatar-24 { width: 24px; height: 24px; font-size: 9px; }
.person-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.person-role { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.person-id { font-family: 'SF Mono', Menlo, monospace; font-size: 11px; color: var(--text-hint); margin-top: 2px; }

/* TYPE PILL */
.type-pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600;
  border-radius: 9999px;
  padding: 4px 10px;
  border: 1px solid;
  text-transform: capitalize;
}
.type-pill.candidate { background: var(--purple-light); color: var(--purple); border-color: var(--purple-border); }
.type-pill.employee { background: var(--blue-light); color: var(--blue); border-color: var(--blue-border); }

/* STATUS BADGE */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 4px 11px;
  border-radius: 9999px;
  border: 1px solid;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.not_started { background: transparent; color: var(--text-hint); border: none; }
.badge.pending { background: var(--amber-light); color: var(--amber); border-color: var(--amber-border); }
.badge.generated { background: var(--purple-light); color: var(--purple); border-color: var(--purple-border); }
.badge.sent { background: var(--blue-light); color: var(--blue); border-color: var(--blue-border); }
.badge.negotiated { background: var(--blue-light); color: var(--blue); border-color: var(--blue-border); }
.badge.accepted { background: var(--green-light); color: var(--green); border-color: var(--green-border); }
.badge.verified { background: var(--green-light); color: var(--green); border-color: var(--green-border); }
.badge.approved { background: var(--green-light); color: var(--green); border-color: var(--green-border); }
.badge.completed { background: var(--green-light); color: var(--green); border-color: var(--green-border); }
.badge.rejected { background: var(--red-light); color: var(--red); border-color: var(--red-border); }
.badge.not_required {
  background: #F8FAFC; color: var(--border-strong);
  border: 1px dashed var(--border);
  font-style: italic;
}
.badge.not_required .dot { display: none; }

/* KYC mini dots */
.kyc-row { display: inline-flex; gap: 5px; }
.kyc-dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  border: 1.5px solid;
}
.kyc-dot.verified { background: var(--green-light); color: var(--green); border-color: var(--green-border); }
.kyc-dot.pending { background: var(--amber-light); color: var(--amber); border-color: var(--amber-border); }
.kyc-dot.not_started { background: #F8FAFC; color: var(--text-hint); border-color: var(--border); }
.kyc-dot.rejected { background: var(--red-light); color: var(--red); border-color: var(--red-border); }
.kyc-dot.not_required { background: #F8FAFC; color: var(--border-strong); border-color: var(--border); border-style: dashed; }

.dash-mute { color: var(--text-hint); font-weight: 500; }

.date-cell .d { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.date-cell .t { font-size: 11px; color: var(--text-hint); margin-top: 2px; }

/* ACTION BUTTON (table) */
.btn-view {
  display: inline-flex; align-items: center; gap: 6px;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  height: 34px; padding: 0 14px;
  border-radius: 10px;
  font-size: 12px; font-weight: 600;
  transition: all 150ms;
}
.btn-view:hover {
  background: var(--brand-light);
  border-color: var(--brand-border);
  color: var(--brand);
}
.btn-view svg { width: 12px; height: 12px; }

/* PAGINATION */
.pagination {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--page-bg);
  display: flex; justify-content: space-between; align-items: center;
}
.pagination-info { font-size: 13px; color: var(--text-muted); }
.page-buttons { display: flex; gap: 6px; align-items: center; }
.page-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  transition: all 150ms;
}
.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--brand-border);
  color: var(--brand);
}
.page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { color: var(--text-hint); padding: 0 4px; }

/* PRIMARY / SECONDARY BUTTON */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand);
  color: white;
  height: 48px; padding: 0 28px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: all 200ms;
}
.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(189,19,19,0.35);
}
.btn-primary:active { transform: scale(0.98); background: var(--brand-deep); }
.btn-primary:disabled {
  background: var(--brand-border);
  color: rgba(189,19,19,0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  height: 48px; padding: 0 24px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: all 150ms;
}
.btn-secondary:hover {
  background: #F8FAFF;
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  font-size: 13px; font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 150ms;
}
.btn-ghost:hover { background: var(--brand-light); }

/* DETAIL VIEW LAYOUT */
.detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  padding: 28px;
  animation: scaleIn 350ms ease-out both;
}
.profile-name { font-size: 20px; font-weight: 600; color: var(--text-primary); margin-top: 14px; }
.profile-role { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.profile-dept {
  display: inline-flex;
  font-size: 11px; font-weight: 600;
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
  padding: 4px 11px;
  margin-top: 10px;
}

.id-label {
  font-size: 10px; font-weight: 600;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 16px; margin-bottom: 6px;
}
.id-badge {
  display: inline-flex;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text-primary);
}

.divider { height: 1px; background: var(--border); margin: 20px 0; }

.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  gap: 12px;
}
.info-row:last-of-type { border-bottom: none; }
.info-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex-shrink: 0;
}
.info-value {
  font-size: 13px; color: var(--text-primary); text-align: right;
  font-weight: 500;
}
.info-value.email { color: var(--brand); }
.info-value.email:hover { text-decoration: underline; cursor: pointer; }
.info-value.ctc { font-size: 14px; font-weight: 600; }

.btn-update-full {
  width: 100%;
  margin-top: 4px;
}

/* RIGHT COLUMN CARDS */
.right-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  padding: 24px 28px;
  animation: scaleIn 350ms ease-out both;
}
.right-card + .right-card { margin-top: 20px; }
.right-card:nth-of-type(1) { animation-delay: 80ms; }
.right-card:nth-of-type(2) { animation-delay: 160ms; }
.right-card:nth-of-type(3) { animation-delay: 240ms; }

.section-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.section-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* STEPPER */
.stepper {
  display: flex; align-items: flex-start;
  margin-top: 28px;
  margin-bottom: 4px;
}
.step { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 88px; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  transition: all 200ms;
  animation: scaleIn 400ms ease-out both;
}
.step-circle.done { background: var(--green); color: white; }
.step-circle.active {
  background: var(--brand); color: white;
  box-shadow: 0 0 0 6px rgba(189,19,19,0.15);
  animation: scaleIn 400ms ease-out both, pulse 2s ease-in-out infinite 400ms;
}
.step-circle.upcoming {
  background: #F1F5F9; color: var(--text-hint);
  border: 1.5px solid var(--border);
}
.step-circle svg { width: 16px; height: 16px; }
.step-label {
  margin-top: 10px;
  font-size: 11px; font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.step-label.done { color: var(--green); }
.step-label.active { color: var(--brand); }
.step-label.upcoming { color: var(--text-hint); }

.connector {
  height: 2px; flex: 1;
  margin-top: 18px;
  background: var(--border);
  position: relative;
  min-width: 40px;
}
.connector.done-active::before {
  content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 50%;
  background: var(--green);
}

/* KYC DOCS LIST */
.kyc-doc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #F1F5F9;
  gap: 16px;
}
.kyc-doc-row:last-child { border-bottom: none; }
.kyc-doc-left { display: flex; align-items: center; gap: 14px; }
.kyc-doc-icon { width: 32px; height: 32px; flex-shrink: 0; }
.kyc-doc-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.kyc-doc-desc { font-size: 12px; color: var(--text-hint); margin-top: 2px; }
.kyc-doc-right { display: flex; align-items: center; gap: 12px; }

.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}

/* TIMELINE on detail */
.history-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #F1F5F9;
}
.history-row:last-child { border-bottom: none; }
.history-marker {
  position: relative;
  width: 14px; flex-shrink: 0;
  align-self: stretch;
  display: flex; justify-content: center;
}
.history-marker .bar { width: 3px; background: var(--blue); border-radius: 2px; height: 100%; }
.history-marker .dot {
  position: absolute; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); border: 2px solid white;
  box-shadow: 0 0 0 1px var(--blue);
}
.history-content { flex: 1; }
.history-stage-pill {
  display: inline-block;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  background: #F1F5F9;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 6px;
}
.history-transition {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}
.mini-pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid;
}
.mini-pill.old { background: var(--red-light); color: var(--red); border-color: var(--red-border); text-decoration: line-through; }
.mini-pill.new-green { background: var(--green-light); color: var(--green); border-color: var(--green-border); }
.mini-pill.new-blue { background: var(--blue-light); color: var(--blue); border-color: var(--blue-border); }
.mini-pill.gray { background: #F8FAFC; color: var(--text-hint); border-color: var(--border); }
.history-meta { font-size: 11px; color: var(--text-hint); margin-top: 6px; }
.arrow { color: var(--text-hint); font-size: 12px; }

.audit-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--brand);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
}
.audit-link:hover { text-decoration: underline; }

/* SLIDE PANEL */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
  animation: fadeIn 200ms ease-out;
}
.slide-panel {
  position: fixed; right: 0; top: 0;
  width: 480px; height: 100vh;
  background: white;
  border-radius: 20px 0 0 20px;
  box-shadow: -8px 0 48px rgba(0,0,0,0.20);
  z-index: 100;
  display: flex; flex-direction: column;
  animation: slideInRight 350ms ease-out;
}
.slide-panel.closing { animation: slideOutRight 300ms ease-in forwards; }
.overlay.closing { animation: fadeOut 200ms ease-in forwards; }

.panel-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.panel-title { font-size: 20px; font-weight: 600; color: var(--text-primary); }
.panel-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.panel-close {
  position: absolute; top: 24px; right: 24px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #F1F5F9;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 150ms;
}
.panel-close:hover { background: var(--red-light); color: var(--brand); }
.panel-close svg { width: 16px; height: 16px; }

.panel-body {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
}
.panel-section + .panel-section { margin-top: 24px; }
.panel-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.panel-helper { font-size: 12px; color: var(--text-hint); margin-bottom: 12px; }

.stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stage-card {
  position: relative;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 200ms;
  background: white;
}
.stage-card:hover { border-color: var(--brand-border); background: #FFFAFA; }
.stage-card.selected { border-color: var(--brand); background: var(--brand-light); }
.stage-card.selected .stage-name { color: var(--brand); }
.stage-card-icon { width: 24px; height: 24px; }
.stage-card-check {
  position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px;
  background: var(--brand);
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  color: white;
}
.stage-card-check svg { width: 10px; height: 10px; }
.stage-card.selected .stage-card-check { display: inline-flex; }
.stage-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-top: 8px; }
.stage-desc { font-size: 11px; color: var(--text-hint); margin-top: 3px; line-height: 1.4; }

.doc-row { display: flex; gap: 8px; flex-wrap: wrap; animation: fadeIn 200ms ease-out; }
.doc-card {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 150ms;
  flex: 1 1 0;
  min-width: 90px;
  text-align: left;
  background: white;
}
.doc-card:hover { border-color: var(--brand-border); }
.doc-card.selected { border-color: var(--brand); background: var(--brand-light); }
.doc-card.selected .doc-name { color: var(--brand); }
.doc-name { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }

.status-pills { display: flex; flex-wrap: wrap; gap: 8px; animation: fadeIn 150ms ease-out; }
.status-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 150ms;
  text-transform: capitalize;
}
.status-pill:hover { border-color: var(--border-strong); }
.status-pill.selected.pending { background: var(--amber-light); color: var(--amber); border-color: var(--amber); }
.status-pill.selected.generated { background: var(--purple-light); color: var(--purple); border-color: var(--purple); }
.status-pill.selected.sent { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.status-pill.selected.negotiated { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.status-pill.selected.accepted, .status-pill.selected.verified, .status-pill.selected.approved, .status-pill.selected.completed {
  background: var(--green-light); color: var(--green); border-color: var(--green);
}
.status-pill.selected.rejected { background: var(--red-light); color: var(--red); border-color: var(--red); }
.status-pill.selected.not_required { background: #F1F5F9; color: var(--text-muted); border-color: var(--border-strong); }

.textarea {
  width: 100%; min-height: 96px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 400;
  color: var(--text-primary);
  resize: vertical;
  transition: all 150ms;
}
.textarea::placeholder { color: var(--text-hint); }
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(189,19,19,0.10);
}
.textarea.error {
  border-color: var(--red);
  background: var(--red-light);
}
.helper-text { font-size: 12px; color: var(--text-hint); margin-top: 6px; }
.helper-text.error { color: var(--red); font-weight: 700; }
.error-msg { font-size: 12px; color: var(--red); margin-top: 4px; animation: fadeIn 150ms ease-out; }

.preview-box {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  animation: fadeIn 150ms ease-out;
}
.preview-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  gap: 12px;
}
.preview-row + .preview-row { border-top: 1px solid var(--border); }
.preview-label { font-size: 12px; color: var(--text-hint); }
.preview-value { display: inline-flex; align-items: center; gap: 8px; }
.transition-arrow { color: var(--text-hint); margin: 0 6px; }

.panel-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  background: white;
  display: flex; justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
.panel-footer .btn-secondary { flex: 1; }
.panel-footer .btn-primary { flex: 1.4; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ROLE SWITCH (top nav) */
.role-switch {
  display: inline-flex;
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 3px;
  margin-right: 4px;
}
.role-opt {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  transition: all 200ms;
}
.role-opt:hover { color: var(--text-primary); }
.role-opt.active {
  background: white;
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(15,23,42,0.10);
}

/* KYC VERIFY POPUP */
.kyc-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: fadeIn 200ms ease-out;
}
.kyc-popup {
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: scaleIn 250ms ease-out;
}
.kyc-popup-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.kyc-popup-header-left { display: flex; align-items: center; gap: 14px; }
.kyc-popup-header-icon { width: 40px; height: 40px; }
.kyc-popup-title { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.kyc-popup-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.kyc-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.kyc-doc-mock {
  background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 2px solid #FBBF24;
}
.kyc-doc-mock.aadhar { background: linear-gradient(135deg, #FEF3C7 0%, #FCD34D 100%); border-color: #F59E0B; }
.kyc-doc-mock.pan { background: linear-gradient(135deg, #DBEAFE 0%, #93C5FD 100%); border-color: #2563EB; }
.kyc-doc-mock.bank { background: linear-gradient(135deg, #DCFCE7 0%, #86EFAC 100%); border-color: #16A34A; }
.kyc-doc-mock-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed rgba(0,0,0,0.20);
}
.kyc-doc-mock-title {
  font-size: 14px; font-weight: 700;
  color: rgba(0,0,0,0.80);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.kyc-doc-mock-emblem {
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.kyc-doc-mock-photo {
  width: 64px; height: 80px;
  background: rgba(255,255,255,0.6);
  border: 2px solid rgba(0,0,0,0.20);
  border-radius: 6px;
  float: left;
  margin-right: 16px;
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.4);
  font-size: 28px;
  font-weight: 700;
}
.kyc-doc-mock-line {
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.kyc-doc-mock-value {
  font-size: 14px;
  color: rgba(0,0,0,0.85);
  font-weight: 700;
  margin-bottom: 10px;
}
.kyc-doc-mock-watermark {
  position: absolute; bottom: 12px; right: 12px;
  font-size: 9px; font-weight: 700;
  color: rgba(0,0,0,0.30);
  letter-spacing: 1.5px;
}

.kyc-fields-card {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.kyc-fields-card h4 {
  font-size: 11px; font-weight: 700;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.kyc-fields-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #E2E8F0;
  gap: 12px;
}
.kyc-fields-row:last-child { border-bottom: none; }
.kyc-fields-label { font-size: 11px; color: var(--text-hint); flex-shrink: 0; }
.kyc-fields-value { font-size: 12px; font-weight: 600; color: var(--text-primary); text-align: right; }

.kyc-popup-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--page-bg);
  flex-shrink: 0;
  gap: 12px;
}
.kyc-popup-footer-left { font-size: 12px; color: var(--text-muted); }
.kyc-popup-footer-right { display: flex; gap: 10px; }
.btn-reject {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 1.5px solid var(--red-border);
  color: var(--red);
  height: 44px; padding: 0 22px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: all 150ms;
}
.btn-reject:hover { background: var(--red-light); border-color: var(--red); }
.btn-verify {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green);
  color: white;
  height: 44px; padding: 0 22px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: all 200ms;
}
.btn-verify:hover { background: #15803D; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,163,74,0.35); }

/* APPROVAL CARD (Super HR) */
.approval-card {
  background: linear-gradient(135deg, #FEFCE8 0%, #FEF9C3 100%);
  border: 1.5px solid #FACC15;
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.approval-card.approved { background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%); border-color: #86EFAC; }
.approval-msg { display: flex; align-items: center; gap: 14px; }
.approval-icon { width: 40px; height: 40px; flex-shrink: 0; }
.approval-text { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.approval-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.approval-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-approve {
  background: var(--green);
  color: white;
  height: 40px; padding: 0 20px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: all 200ms;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-approve:hover { background: #15803D; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,163,74,0.35); }
.btn-reject-sm {
  background: white;
  border: 1.5px solid var(--red-border);
  color: var(--red);
  height: 40px; padding: 0 18px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: all 150ms;
}
.btn-reject-sm:hover { background: var(--red-light); border-color: var(--red); }

/* ONBOARDED VIEW STATUS BANNER */
.onboarded-banner {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  border-radius: 16px;
  padding: 24px 28px;
  color: white;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(22,163,74,0.30);
  animation: scaleIn 350ms ease-out both;
}
.onboarded-banner-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.20);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.onboarded-banner-icon svg { width: 28px; height: 28px; color: white; }
.onboarded-banner h3 { font-size: 18px; font-weight: 700; }
.onboarded-banner p { font-size: 13px; opacity: 0.9; margin-top: 3px; }

/* EMAIL CARD */
.email-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  padding: 24px 28px;
  animation: scaleIn 350ms ease-out both;
}
.email-preview {
  background: #F8FAFC;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}
.email-row {
  display: flex; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.email-row:last-of-type { border-bottom: none; padding-bottom: 14px; }
.email-row .lbl { width: 60px; font-size: 11px; font-weight: 600; color: var(--text-hint); text-transform: uppercase; letter-spacing: 0.6px; padding-top: 2px; }
.email-row .val { color: var(--text-primary); font-size: 13px; }
.email-row .val.subj { font-weight: 600; }
.email-body {
  margin-top: 14px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-line;
}
.email-attach {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.email-attach svg { width: 14px; height: 14px; color: var(--brand); }

.btn-send-email {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand);
  color: white;
  height: 44px; padding: 0 24px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: all 200ms;
}
.btn-send-email:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(189,19,19,0.35); }
.btn-send-email.sent { background: var(--green); }
.btn-send-email.sent:hover { background: #15803D; }
.btn-send-email svg { width: 16px; height: 16px; }

/* clickable kyc doc row */
.kyc-doc-row.clickable { cursor: pointer; padding: 14px 8px; margin: 0 -8px; border-radius: 10px; transition: background 150ms; }
.kyc-doc-row.clickable:hover { background: var(--brand-light); }
.kyc-doc-row.clickable:hover .kyc-doc-name { color: var(--brand); }

/* multi-doc final approval */
.kyc-popup.wide { max-width: 1100px; }
.doc-tabs {
  display: flex; gap: 4px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--page-bg);
  flex-shrink: 0;
  overflow-x: auto;
}
.doc-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: white;
  border: 1.5px solid var(--border);
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 150ms;
}
.doc-tab img { width: 16px; height: 16px; }
.doc-tab .dot-success { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.doc-tab.active { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.doc-tab:hover:not(.active) { border-color: var(--border-strong); }

.kyc-popup-body.multi {
  display: block;
  padding: 0;
  scroll-behavior: smooth;
}
.doc-block {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.doc-block:last-of-type { border-bottom: none; }
.doc-block-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.doc-block-icon { width: 32px; height: 32px; }
.doc-block-name { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.doc-block-sub { font-size: 11px; color: var(--text-hint); margin-top: 2px; }
.doc-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.approval-summary {
  margin: 0 28px 24px;
  padding: 18px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1px solid #86EFAC;
  display: flex; align-items: center; gap: 14px;
}
.approval-summary-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.approval-summary-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.approval-summary-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.reject-bar {
  padding: 14px 28px 0;
  border-top: 1px solid var(--border);
  background: var(--red-light);
  flex-shrink: 0;
}
.reject-bar .textarea { background: white; min-height: 64px; }

/* clickable approval card */
.approval-card.clickable { cursor: pointer; transition: all 200ms; }
.approval-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(250,204,21,0.30);
  border-color: #F59E0B;
}
.approval-card .approval-text-wrap { flex: 1; }
.approval-card .approval-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}
.approval-card .approval-cta svg { width: 12px; height: 12px; }

/* spacing fix on onboarded screen */
.right-card + .email-card,
.email-card + .right-card { margin-top: 20px; }

/* TOAST */
.toast {
  position: fixed; top: 24px; left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: white;
  font-size: 13px; font-weight: 500;
  border-radius: 9999px;
  padding: 12px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  display: flex; align-items: center; gap: 10px;
  z-index: 200;
  animation: toastEnter 350ms ease-out;
}
.toast.closing { animation: toastExit 300ms ease-in forwards; }
.toast .dot-success { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; }

/* AUDIT TRAIL */
.audit-card-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.audit-card-title { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.audit-card-sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.audit-card-actions { display: flex; align-items: center; gap: 10px; }
.audit-select {
  height: 36px;
  padding: 0 32px 0 12px;
  font-size: 12px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.audit-filters {
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--page-bg);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.action-pills { display: flex; gap: 8px; }
.action-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-secondary);
  font-size: 12px; font-weight: 600;
  transition: all 150ms;
}
.action-pill:hover:not(.active) { border-color: var(--brand-border); color: var(--brand); }
.action-pill.active { background: var(--brand); border-color: var(--brand); color: white; }

.audit-row {
  display: flex; gap: 20px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 150ms;
  animation: staggerFadeUp 250ms ease-out both;
}
.audit-row:hover { background: #F8FAFC; }
.audit-row:last-child { border-bottom: none; }

.audit-marker {
  width: 14px; flex-shrink: 0;
  position: relative;
  align-self: stretch;
  display: flex; justify-content: center;
}
.audit-marker .bar { width: 3px; border-radius: 2px; height: 100%; }
.audit-marker .dot {
  position: absolute; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}
.audit-marker.UPDATE .bar, .audit-marker.UPDATE .dot { background: var(--blue); }
.audit-marker.UPDATE .dot { box-shadow: 0 0 0 1px var(--blue); }
.audit-marker.CREATE .bar, .audit-marker.CREATE .dot { background: var(--green); }
.audit-marker.CREATE .dot { box-shadow: 0 0 0 1px var(--green); }
.audit-marker.DELETE .bar, .audit-marker.DELETE .dot { background: var(--red); }
.audit-marker.DELETE .dot { box-shadow: 0 0 0 1px var(--red); }

.audit-date { width: 80px; flex-shrink: 0; }
.audit-date .d { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.audit-date .t { font-size: 11px; color: var(--text-hint); margin-top: 2px; }

.audit-content { flex: 1; min-width: 0; }
.audit-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.action-badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid;
  letter-spacing: 0.4px;
}
.action-badge.UPDATE { background: var(--blue-light); color: var(--blue); border-color: var(--blue-border); }
.action-badge.CREATE { background: var(--green-light); color: var(--green); border-color: var(--green-border); }
.action-badge.DELETE { background: var(--red-light); color: var(--red); border-color: var(--red-border); }
.audit-entity { font-family: 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--text-hint); }

.audit-changes { margin-top: 8px; }
.change-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 4px 0;
  font-size: 12px;
}
.change-field {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px; color: var(--text-muted);
  min-width: 220px;
}
.change-note { font-size: 12px; color: var(--text-muted); font-style: italic; }

.audit-actor {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
}
.audit-actor .name { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.audit-actor .meta { font-size: 12px; color: var(--text-hint); }

.audit-empty {
  padding: 64px 28px;
  text-align: center;
}
.audit-empty img { width: 64px; height: 64px; opacity: 0.55; margin-bottom: 16px; }
.audit-empty .t { font-size: 14px; font-weight: 500; color: var(--text-muted); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes screenEnter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0.5; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(189,19,19,0.15); }
  50% { box-shadow: 0 0 0 10px rgba(189,19,19,0.05); }
}
@keyframes toastEnter {
  from { opacity: 0; transform: translateX(-50%) translateY(-40px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastExit {
  to { opacity: 0; transform: translateX(-50%) translateY(-40px); }
}
@keyframes staggerFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-enter { animation: screenEnter 300ms ease-out both; }

/* Scrollbar in panel */
.panel-body::-webkit-scrollbar { width: 6px; }
.panel-body::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 3px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
