:root{
  --ff-bg:#f5f7fb;
  --ff-card:#ffffff;
  --ff-border:#e6e9ef;
  --ff-muted:#6b7280;
  --ff-primary:#0f172a;
  --ff-radius:16px;
  --ff-shadow:0 8px 24px rgba(15,23,42,.06);
}

html,body{
  background:var(--ff-bg);
}

.container-narrow{
  max-width:1180px;
}

.card{
  background:var(--ff-card);
  border:1px solid var(--ff-border);
  border-radius:var(--ff-radius);
  box-shadow:var(--ff-shadow);
}

.header-space{
  height:64px;
}

.kpi{
  font-weight:700;
  font-size:1.6rem;
  line-height:1.2;
}

.kpi-sub{
  font-size:.85rem;
  color:var(--ff-muted);
}

.btn.btn-primary{
  background:var(--ff-primary);
  border-color:var(--ff-primary);
}
.btn.btn-primary:hover{
  opacity:.95;
}
.btn-outline-secondary{
  border-radius:999px;
}
.navbar .btn{
  border-radius:999px;
}

/* Leyenda de calendario */
.ff-legend{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
  font-size:.8rem;
}

.ff-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  display:inline-block;
  margin-right:6px;
  vertical-align:middle;
}

.ff-badge{
  border-radius:999px;
  padding:.35rem .6rem;
  display:inline-block;
  background:#e5e7eb;
  color:#111;
  font-weight:600;
  font-size:.7rem;
}
.ff-badge--gray{
  background:#e5e7eb;
  color:#111;
}

/* Calendario mensual */
.ff-cal{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:.6rem;
}

.ff-head{
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  color:var(--ff-muted);
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.ff-cell{
  min-height:96px;
  font-size:.75rem;
  line-height:1.2;
}

.ff-card{
  height:100%;
  display:flex;
  flex-direction:column;
  border:1px solid var(--ff-border);
  border-radius:12px;
  background:#fff;
  padding:.6rem;
}

.ff-num{
  font-weight:700;
  margin-bottom:.25rem;
  color:#111827;
  font-size:.8rem;
}

.ff-empty .ff-card{
  visibility:hidden;
}

/* Pastillas de evento tipo "VAC · Paco" */
.badge.ff-pill{
  border-radius:999px;
  padding:.35rem .6rem;
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-bottom:.25rem;
  font-size:.7rem;
  font-weight:500;
  line-height:1.2;
}
