/* ==========================================================================
   PELITA MITRA - EXECUTIVE HR INTELLIGENCE SYSTEM
   Corporate Grade: High-End Minimalist Enterprise Architecture
   ========================================================================== */

:root {
  /* Pelita Mitra Precision Enterprise Palette */
  --pm-navy-950: #0B192C;
  --pm-navy-900: #102A43;
  --pm-navy-800: #1B3B6F;
  --pm-navy-700: #244B82;
  --pm-blue-accent: #2563EB;
  --pm-blue-subtle: #EFF6FF;
  --pm-blue-border: #BFDBFE;

  /* Surfaces & Clean Whites */
  --bg-page: #F6F8FA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #F8FAFC;

  /* Hairline Borders */
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-focus: #1B3B6F;

  /* High-Contrast Corporate Typography */
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  --text-light: #94A3B8;

  /* Semantic Status (Understated, Executive) */
  --status-pass-text: #047857;
  --status-pass-bg: #ECFDF5;
  --status-pass-border: #A7F3D0;

  --status-fail-text: #B91C1C;
  --status-fail-bg: #FEF2F2;
  --status-fail-border: #FECACA;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Shadows (Subtle, Flat) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --shadow-modal: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

*:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.app-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ==========================================================================
   UNIFIED EXECUTIVE NAVBAR (Single Sleek Bar)
   ========================================================================== */
.corp-header {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 14px;
}

.corp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.corp-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
}

.corp-title-wrap {
  display: flex;
  flex-direction: column;
}

.corp-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.corp-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--pm-navy-950);
  letter-spacing: -0.01em;
}

.corp-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--pm-blue-subtle);
  color: var(--pm-navy-800);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pm-blue-border);
}

.corp-system-title {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.corp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background-color: var(--pm-navy-900);
  color: #FFFFFF;
  border-color: var(--pm-navy-900);
}

.btn-primary:hover {
  background-color: var(--pm-navy-950);
  border-color: var(--pm-navy-950);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-delete-row {
  background: transparent;
  color: var(--text-light);
  border: 1px solid transparent;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-delete-row:hover {
  color: var(--status-fail-text);
  background-color: var(--status-fail-bg);
  border-color: var(--status-fail-border);
}

/* ==========================================================================
   SEGMENTED NAVIGATION TABS (Understated & Fast)
   ========================================================================== */
.nav-segmented {
  display: inline-flex;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  gap: 2px;
}

.seg-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.seg-btn:hover {
  color: var(--text-main);
}

.seg-btn.active {
  background-color: var(--pm-navy-900);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   METRICS GRID (Bento Minimalist Style)
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.metric-pill-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

.metric-number {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  font-feature-settings: "tnum" 1;
}

.text-pass {
  color: var(--status-pass-text);
}

/* ==========================================================================
   DATA TABLE & INTEGRATED TOOLBAR
   ========================================================================== */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-toolbar {
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1 1 260px;
}

.search-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.table-search-input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  font-size: 13px;
  font-family: var(--font-sans);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-main);
  transition: all 0.15s ease;
}

.table-search-input:focus {
  background: #FFFFFF;
  border-color: var(--border-focus);
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-select {
  padding: 7px 10px;
  font-size: 12.5px;
  font-family: var(--font-sans);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-main);
  cursor: pointer;
}

.dossier-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.dossier-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.dossier-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-muted);
}

.dossier-table tbody tr:last-child td {
  border-bottom: none;
}

.dossier-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.candidate-name-cell {
  font-weight: 600;
  color: var(--text-main);
  font-size: 13.5px;
}

.candidate-prev-comp {
  font-size: 11px;
  color: var(--text-dim);
}

.position-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--pm-navy-800);
  border: 1px solid var(--border-subtle);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-badge-pass {
  background-color: var(--status-pass-bg);
  color: var(--status-pass-text);
  border-color: var(--status-pass-border);
}

.status-badge-fail {
  background-color: var(--status-fail-bg);
  color: var(--status-fail-text);
  border-color: var(--status-fail-border);
}

.score-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
}

/* ==========================================================================
   FORM SECTION (Crisp, High-Class, Minimal Wordiness)
   ========================================================================== */
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.panel-header-simple {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header-simple h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pm-navy-950);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.form-field label span.req {
  color: var(--status-fail-text);
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--font-sans);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-main);
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--border-focus);
}

textarea.form-input {
  min-height: 80px;
  resize: vertical;
}

/* Competency Rows */
.competency-box {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.comp-info-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.comp-info-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

.rate-group {
  display: flex;
  gap: 6px;
}

.rate-btn {
  width: 38px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rate-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.rate-btn.active {
  background: var(--pm-navy-900);
  color: #FFFFFF;
  border-color: var(--pm-navy-900);
}

/* Score Summary Inline */
.score-indicator-bar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.score-num-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.score-num-item {
  display: flex;
  flex-direction: column;
}

.score-num-item .lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.score-num-item .val {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--pm-navy-950);
}

/* Decision Selector Cards */
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.decision-choice {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #FFFFFF;
}

.decision-choice:hover {
  border-color: var(--border-medium);
}

.decision-choice.active-pass {
  border-color: var(--status-pass-text);
  background: var(--status-pass-bg);
}

.decision-choice.active-fail {
  border-color: var(--status-fail-text);
  background: var(--status-fail-bg);
}

.decision-choice .title {
  font-size: 13.5px;
  font-weight: 700;
}

.decision-choice .sub {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ==========================================================================
   MODAL DOSSIER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--pm-navy-950);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--bg-subtle);
}

/* ==========================================================================
   EXECUTIVE CANDIDATE DOSSIER (BERITA ACARA WAWANCARA RESMI)
   ========================================================================== */
.dossier-modal-box {
  width: 94%;
  max-width: 800px;
  max-height: 92vh;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 60px -15px rgba(11, 25, 44, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.dossier-modal-header {
  background: linear-gradient(135deg, #0B192C 0%, #102A43 100%);
  color: #FFFFFF;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #2563EB;
  flex-shrink: 0;
}

.dossier-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dossier-corp-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.dossier-doc-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FCD34D;
  margin-bottom: 2px;
}

.dossier-doc-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
}

.dossier-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.dossier-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.dossier-modal-body {
  padding: 22px;
  max-height: calc(88vh - 130px);
  overflow-y: auto;
  background: #F8FAFC;
}

.dossier-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 1. Hero Candidate Overview Card */
.dossier-hero-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dossier-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.dossier-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #102A43 0%, #2563EB 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
  flex-shrink: 0;
}

.dossier-corp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.dossier-candidate-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.dossier-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dossier-tag-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
}

.tag-dc {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.tag-tele {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.dossier-prev-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 3px 9px;
  border-radius: 6px;
}

.dossier-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.dossier-decision-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.seal-pass {
  background: #DCFCE7;
  color: #15803D;
  border: 1.5px solid #86EFAC;
}

.seal-fail {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1.5px solid #FCA5A5;
}

.seal-icon {
  font-size: 14px;
  font-weight: 900;
}

.dossier-score-summary-pill {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 4px;
}

.dossier-score-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  font-feature-settings: 'tnum';
}

.dossier-score-max {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.dossier-score-status {
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

.status-text-pass {
  color: #16A34A;
}

.status-text-fail {
  color: #DC2626;
}

/* 2. Bento Grid: Sesi Interview & Riwayat */
.dossier-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.bento-tile {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bento-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.bento-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.bento-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #475569;
}

.bento-sub {
  font-size: 11px;
  color: var(--text-light);
}

.badge-exp-yes {
  display: inline-block;
  color: #15803D;
  background: #DCFCE7;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-exp-no {
  display: inline-block;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* 3. Section Evaluasi 5-Pilar Kompetensi */
.dossier-section-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.dossier-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-subtle);
}

.dossier-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pm-navy-950);
  letter-spacing: -0.01em;
}

.dossier-section-badge {
  font-size: 12px;
  color: #475569;
  background: #F8FAFC;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
}

.dossier-competency-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-card-item {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  transition: background 0.15s ease;
}

.comp-card-item:hover {
  background: #F1F5F9;
}

.comp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comp-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.comp-card-score-pill {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 700;
}

.comp-score-num {
  font-size: 14px;
  color: #2563EB;
  font-weight: 800;
}

.comp-score-slash {
  font-size: 11px;
  color: var(--text-dim);
}

/* 5-Segmented Smooth Track */
.comp-segments-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  height: 7px;
  margin-bottom: 8px;
}

.score-seg {
  height: 100%;
  border-radius: 4px;
  transition: background 0.2s;
}

.score-seg.seg-active {
  background: linear-gradient(90deg, #2563EB, #3B82F6);
  box-shadow: 0 1px 3px rgba(37,99,235,0.25);
}

.score-seg.seg-inactive {
  background: #E2E8F0;
}

.comp-card-rubric {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.45;
  background: #FFFFFF;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #EEF2F6;
}

.rubric-bullet {
  color: #2563EB;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.rubric-detail {
  flex: 1;
}

/* 4. Qualitative Assessment Cards */
.dossier-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dossier-note-card {
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.note-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.note-icon {
  font-size: 13px;
}

.note-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.note-card-body {
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-card-strength {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.note-card-strength .note-title {
  color: #166534;
}

.note-card-strength .note-card-body {
  color: #14532D;
}

.note-card-weakness {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
}

.note-card-weakness .note-title {
  color: #92400E;
}

.note-card-weakness .note-card-body {
  color: #78350F;
}

.note-card-hr {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  margin-top: 12px;
}

.note-card-hr .note-title {
  color: #1E40AF;
}

.note-card-hr .note-card-body {
  color: #1E3A8A;
}

/* 5. Official Verification Stamp & Signature Strip */
.dossier-verification-strip {
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.verif-col-left {
  display: flex;
  align-items: center;
}

.verif-seal-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #16A34A;
}

.verif-seal-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.verif-seal-sub {
  font-size: 10.5px;
  color: var(--text-dim);
}

.verif-col-right {
  display: flex;
  gap: 24px;
}

.verif-sign-box {
  text-align: center;
  min-width: 120px;
}

.sign-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 22px;
}

.sign-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  border-top: 1px solid #CBD5E1;
  padding-top: 4px;
}

.sign-role {
  font-size: 10px;
  color: var(--text-dim);
}

/* Dossier Footer Actions */
.dossier-modal-footer {
  padding: 12px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  flex-shrink: 0;
}

/* Dossier Mobile Responsiveness */
@media (max-width: 640px) {
  .dossier-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .dossier-hero-right {
    align-items: flex-start;
    width: 100%;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
  }
  .dossier-bento-grid,
  .dossier-notes-grid {
    grid-template-columns: 1fr;
  }
  .dossier-verification-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .verif-col-right {
    width: 100%;
    justify-content: space-between;
  }
  .dossier-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .dossier-modal-footer .btn {
    width: 100%;
  }
}

/* Print Styling for Official Dossier Document */
@media print {
  body * {
    visibility: hidden;
  }
  #dossier-modal,
  #dossier-modal * {
    visibility: visible;
  }
  #dossier-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
  }
  .dossier-modal-box {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }
  .dossier-modal-header {
    background: #0B192C !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .dossier-modal-close,
  .dossier-modal-footer {
    display: none !important;
  }
  .dossier-modal-body {
    max-height: none !important;
    overflow: visible !important;
    padding: 10px !important;
    background: #FFFFFF !important;
  }
  .score-seg.seg-active {
    background: #2563EB !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--pm-navy-950);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-modal);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Empty State */
.empty-box {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
}

.empty-box h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 8px;
}

.empty-box p {
  font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .app-wrapper {
    padding: 12px 10px 40px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .decision-grid {
    grid-template-columns: 1fr;
  }
  .dossier-grid-meta {
    grid-template-columns: 1fr;
  }
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .rate-group {
    width: 100%;
    justify-content: space-between;
  }
  .rate-btn {
    flex: 1;
  }
}

/* Print */
@media print {
  body {
    background: #FFFFFF;
    color: #000000;
  }
  .corp-header,
  .nav-segmented,
  .metrics-grid,
  .table-card,
  .btn,
  .modal-footer,
  .modal-close,
  .toast-container {
    display: none !important;
  }
  .modal-overlay {
    position: static;
    background: none;
    display: block !important;
    padding: 0;
  }
  .modal-box {
    max-width: 100%;
    box-shadow: none;
    border: none;
  }
}

/* ==============================================================================
   Split-Screen Executive Login Experience (Matching Reference)
   ============================================================================== */

.split-login-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex !important;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #FFFFFF;
}

.split-login-wrapper[style*="display: none"] {
  display: none !important;
}

/* LEFT SIDE: Hero Visual & Branding */
.split-login-hero {
  position: relative;
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vh, 38px) clamp(24px, 3.5vw, 40px);
  overflow: hidden;
  background: var(--pm-navy-950);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  /* Posisi 15% horizontal dan 82% vertikal memastikan kepala & dada karakter berada tinggi di langit luas, tidak tertutup kartu */
  background-position: 15% 82%;
  z-index: 1;
  transform: translateZ(0);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg, 
    rgba(16, 42, 67, 0.04) 0%, 
    rgba(16, 42, 67, 0.25) 50%, 
    rgba(10, 26, 42, 0.90) 100%
  );
  pointer-events: none;
}

/* Ambient Floating Clouds */
.hero-ambient-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.ambient-cloud {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.35;
  pointer-events: none;
}

.ambient-cloud-1 {
  top: 12%;
  left: -50px;
  width: 280px;
  height: 140px;
  background: rgba(255, 255, 255, 0.4);
  animation: cloudFloat1 20s ease-in-out infinite;
}

.ambient-cloud-2 {
  top: 22%;
  right: -30px;
  width: 240px;
  height: 120px;
  background: rgba(252, 211, 77, 0.28); /* Warm gold sun reflection */
  animation: cloudFloat2 26s ease-in-out infinite;
}

@keyframes cloudFloat1 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(35px) translateY(-8px); }
}

@keyframes cloudFloat2 {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-30px) translateY(10px); }
}

/* Floating Hero Info Card - Sleek & Compact so it never covers the character */
.hero-info-card {
  position: relative;
  z-index: 10;
  background: rgba(13, 33, 55, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 480px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.50);
  animation: cardSlideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.60);
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.hero-card-desc {
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.45;
  margin-bottom: 12px;
  font-weight: 400;
}

.hero-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F1F5F9;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.hero-badge-pill svg {
  color: var(--pm-blue-accent);
}

.hero-badge-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(63, 169, 245, 0.4);
}

.hero-copyright {
  position: relative;
  z-index: 10;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* RIGHT SIDE: Corporate Form */
.split-login-form-area {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #FFFFFF;
  overflow-y: auto;
}

.login-form-container {
  width: 100%;
  max-width: 420px;
  animation: formFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.split-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.split-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(16, 42, 67, 0.12);
  flex-shrink: 0;
}

.split-brand-titles {
  display: flex;
  flex-direction: column;
}

.split-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--pm-navy-950);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.split-brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.split-headline-wrap {
  margin-bottom: 24px;
}

.split-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--pm-navy-950);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.split-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.split-form {
  display: flex;
  flex-direction: column;
}

.split-field-group {
  margin-bottom: 15px;
}

.split-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-navy-900);
  margin-bottom: 6px;
}

.split-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.split-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.split-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: 9px;
  padding: 12px 14px 12px 42px;
  font-size: 13.5px;
  color: var(--text-main);
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}

.split-input:focus {
  background: #FFFFFF;
  border-color: var(--pm-blue-accent);
  box-shadow: 0 0 0 4px rgba(63, 169, 245, 0.14);
}

.split-input:focus ~ .split-input-icon {
  color: var(--pm-blue-accent);
}

.split-pwd-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  padding: 6px;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  z-index: 2;
}

.split-pwd-toggle:hover {
  color: var(--pm-navy-900);
}

.split-aux-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -4px;
  margin-bottom: 16px;
}

.split-forgot-link {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--pm-blue-hover);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.split-forgot-link:hover {
  color: var(--pm-navy-800);
  text-decoration: underline;
}

.split-error-alert {
  background: var(--status-fail-bg);
  border: 1px solid #FECACA;
  color: var(--status-fail-text);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  text-align: left;
}

.split-btn-submit {
  width: 100%;
  background: var(--pm-navy-950);
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  padding: 12.5px 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px -2px rgba(16, 42, 67, 0.28);
  font-family: inherit;
}

.split-btn-submit:hover {
  background: var(--pm-navy-800);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px -3px rgba(16, 42, 67, 0.38);
}

.split-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.25);
}

/* AKUN DEMO CEPAT (Matching Reference) */
.split-demo-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.demo-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.demo-chips-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.demo-chip:hover {
  background: var(--pm-blue-subtle);
  border-color: var(--pm-blue-accent);
  transform: translateY(-1px);
}

.demo-chip:active {
  transform: scale(0.97);
}

.demo-chip.chip-flash {
  border-color: var(--pm-blue-accent);
  background: #E0F2FE;
  box-shadow: 0 0 0 3px rgba(63, 169, 245, 0.25);
}

.chip-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.chip-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--pm-blue-hover);
  background: #E0F2FE;
  padding: 2px 6px;
  border-radius: 4px;
}

.split-interviewer-notice {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: left;
}

.interviewer-link {
  color: var(--pm-blue-hover);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.interviewer-link:hover {
  color: var(--pm-navy-800);
  text-decoration: underline;
}

/* Responsive Split Layout: Handphone & Tablet (< 821px) */
@media (max-width: 820px) {
  .split-login-wrapper {
    flex-direction: column !important;
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: auto !important;
    background: #FFFFFF !important;
  }
  
  /* Compact visual banner on mobile - character & skyline perfectly visible */
  .split-login-hero {
    flex: 0 0 220px !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 240px !important;
    padding: 14px 18px !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important;
  }
  
  .hero-bg-media {
    background-position: 15% 80% !important;
    background-size: cover !important;
  }
  
  .hero-info-card {
    padding: 10px 14px !important;
    border-radius: 8px !important;
    margin: 0 !important;
    max-width: 100% !important;
    background: rgba(13, 33, 55, 0.88) !important;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.35) !important;
  }
  
  .hero-card-title {
    font-size: 13.5px !important;
    margin-bottom: 0 !important;
    line-height: 1.3 !important;
  }
  
  /* Sembunyikan deskripsi panjang & badges pada handphone agar form login langsung terlihat nyaman tanpa harus scroll panjang */
  .hero-card-desc,
  .hero-card-badges,
  .hero-copyright {
    display: none !important;
  }
  
  /* Form Area on Mobile */
  .split-login-form-area {
    flex: 1 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 24px 20px 48px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .login-form-container {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }
  
  .split-form-title {
    font-size: 20px !important;
  }
  
  .split-form-desc {
    font-size: 13px !important;
    margin-bottom: 18px !important;
  }
  
  .btn-split-login {
    height: 48px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
  }
}

/* Extra small mobile screens (e.g. iPhone SE, screen <= 400px) */
@media (max-width: 400px) {
  .split-login-hero {
    height: 180px !important;
    min-height: 180px !important;
    flex: 0 0 180px !important;
    padding: 12px !important;
  }
  .split-login-form-area {
    padding: 18px 14px 36px !important;
  }
  .split-brand-header {
    margin-bottom: 14px !important;
  }
  .split-brand-name {
    font-size: 14px !important;
  }
}

/* User Profile Pill in Navbar */
.hr-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px 4px 6px;
  border-radius: 9999px;
}

.hr-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pm-navy-800);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hr-user-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.hr-user-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pm-navy-950);
}

.hr-user-role {
  font-size: 9.5px;
  color: var(--text-dim);
  font-weight: 500;
}
