/* =====================================================================
   LPPM ISTN — Part 2 components: monitoring, funding, roadmap, contract
   ===================================================================== */

/* ------------------------------------------------------------- Navigasi */
.tabs-nav {
  margin-bottom: var(--space-4, 16px);
  gap: 4px;
}

.tabs-nav .tab {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* ------------------------------------------------------------- Monitoring */
.score-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.15;
}

.score-cell strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--navy-900);
}

.gantt-caption {
  font-size: var(--fs-xs, 12px);
  color: var(--muted);
  margin-bottom: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag.is-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

/* --------------------------------------------------------------- Keuangan */
.legend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm, 13px);
}

.lg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.lg-label {
  flex: 1;
  min-width: 0;
  color: var(--text-soft);
}

.lg-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--navy-900);
}

/* ---------------------------------------------------------------- Dokumen */
.doc-letterhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 3px double var(--navy-900);
}

.dl-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold-300);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}

.dl-org {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-900);
}

.dl-inst {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
}

.dl-small {
  font-size: 11px;
  color: var(--muted);
}

.doc-title {
  text-align: center;
  font-size: 17px;
  letter-spacing: 0.04em;
  margin: 6px 0 2px;
  color: var(--navy-900);
}

.doc-nomor {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.doc-body {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.doc-table th {
  width: 150px;
  font-weight: 600;
  color: var(--text-soft);
}

.doc-sign {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  text-align: center;
}

.doc-sign > div {
  flex: 1;
  max-width: 260px;
}

.ds-line {
  height: 56px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 6px;
}

.ds-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy-900);
}

.ds-role {
  font-size: 11px;
  color: var(--muted);
}

@media print {
  .doc-sign {
    page-break-inside: avoid;
  }
}

/* ------------------------------------------------------------------ Misc */
.u-small {
  font-size: var(--fs-xs, 12px);
}

.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}

.kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .doc-sign {
    flex-direction: column;
    gap: 28px;
  }

  .doc-sign > div {
    max-width: none;
  }
}
